package com.cskaoyan.mapper;

import com.cskaoyan.bean.pojo.AuthorityApi;
import com.cskaoyan.bean.pojo.AuthorityApiExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface AuthorityApiMapper {
    long countByExample(AuthorityApiExample example);

    int deleteByExample(AuthorityApiExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(AuthorityApi record);

    int insertSelective(AuthorityApi record);

    List<AuthorityApi> selectByExample(AuthorityApiExample example);

    AuthorityApi selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") AuthorityApi record, @Param("example") AuthorityApiExample example);

    int updateByExample(@Param("record") AuthorityApi record, @Param("example") AuthorityApiExample example);

    int updateByPrimaryKeySelective(AuthorityApi record);

    int updateByPrimaryKey(AuthorityApi record);

    String queryApiNameByPermId(@Param("permId") int permId);

}